//
//  RankingListCell.m
//  KaoLaShiGuangFM
//
//  Created by lanou3g on 15/10/27.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "RankingListCell.h"

@implementation RankingListCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addSubViews];
    }
    return self;
}

- (void)addSubViews
{
    self.coverPathImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 100, 100)];
    self.coverPathImageView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.coverPathImageView];
    
    self.titleLable = [[UILabel alloc] initWithFrame:CGRectMake(self.coverPathImageView.right + 10, 10, 200, 50)];
//    self.titleLable.backgroundColor = [UIColor yellowColor];
    self.titleLable.font = [UIFont systemFontOfSize:22];
    [self.contentView addSubview:self.titleLable];
    
    UILabel *one = [[UILabel alloc] initWithFrame:CGRectMake(self.coverPathImageView.right + 10, self.titleLable.bottom, 10, 30)];
    one.text = @"1";
    [self.contentView addSubview:one];
    
    UILabel *two = [[UILabel alloc] initWithFrame:CGRectMake(self.coverPathImageView.right + 10, one.bottom, 10, 30)];
    two.text = @"2";
    [self.contentView addSubview:two];
    
    self.firstTitleLable = [[UILabel alloc] initWithFrame:CGRectMake(one.right + 2, self.titleLable.bottom, 200, 30)];
//    self.firstTitleLable.backgroundColor = [UIColor yellowColor];
    self.firstTitleLable.font = [UIFont systemFontOfSize:13];
    [self.contentView addSubview:self.firstTitleLable];
    
    self.twoTitleLable = [[UILabel alloc] initWithFrame:CGRectMake(two.right + 2, CGRectGetMaxY(self.firstTitleLable.frame), 200, 30)];
//    self.twoTitleLable.backgroundColor = [UIColor yellowColor];
    self.twoTitleLable.font = [UIFont systemFontOfSize:13];
    [self.contentView addSubview:self.twoTitleLable];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
